package net.zjitc.service.impl;

import net.zjitc.entity.Role;
import net.zjitc.mapper.RoleMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.zjitc.service.IRoleService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

/**
 * @auther 郭梦婷
 * @create 2022-05-23 17:13:07
 * @describe 服务实现类
 */
@Service
@Transactional
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {
    @Autowired
    private RoleMapper roleMapper;

    @Override
    public Role selectByid(Integer roleid) {
        return roleMapper.selectById(roleid);
    }
}
